//
//  SimBottomLineSegmentView.h
//  TKnowBox
//
//  Copyright © 2015年 knowin. All rights reserved.
//

#import <UIKit/UIKit.h>

@class SimButton;

typedef void(^SetupItemStyleBlock)(SimButton *btn, NSInteger index);

@interface SimBottomLineSegmentView : UIControl

- (instancetype)initWithItems:(NSArray *)items;

@property (nonatomic) NSInteger selectedSegmentIndex;
@property (nonatomic, readonly) NSArray *items;
@property (nonatomic, readonly) NSArray *itemBtns;

@property (nonatomic, strong) UIFont *titleFont;
@property (nonatomic, strong) UIColor *selectedColor;
@property (nonatomic, strong) UIColor *normalColor;

@property (nonatomic, copy) SetupItemStyleBlock setupItemAtIndexBlock;

- (void)insertItem:(NSString *)item atIndex:(NSInteger)index;
- (void)removeItemAtIndex:(NSInteger)index;


@end
